package com.xique.park.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xique.park.bean.domain.ParkThirdPartyPush;
import com.xique.park.mapper.ParkThirdPartyPushMapper;
import com.xique.park.service.service.IParkThirdPartyPushService;
import org.springframework.stereotype.Service;

/**
 * 第三方推送服务接口实现
 *
 * @author WLD
 */
@Service
public class IParkThirdPartyPushImpl extends ServiceImpl<ParkThirdPartyPushMapper, ParkThirdPartyPush> implements IParkThirdPartyPushService {

    @Override
    public ParkThirdPartyPush selectOneByParkId(Long parkId) {
        LambdaQueryWrapper<ParkThirdPartyPush> queryWrapper = Wrappers.lambdaQuery();
        queryWrapper.eq(ParkThirdPartyPush::getParkId, parkId);
        return getOne(queryWrapper);
    }

}
